Skip to main content
Version: 10.x

Date & Time

The Date & Time datasource is always available in Smartsign and can be bound to text fields in any template or layout, regardless of other datasources that are used.

This makes it easy to display clocks, dates, weekdays, or week numbers on your screens without requiring additional configuration.

How it works

The Date & Time datasource outputs the current time information based on the format and settings you choose. Smartsign provides four preset values that you can use directly or customize:

  • Current Time
  • Current Date
  • Current Day
  • Current Week

Each preset can be formatted using a DateTime format string, allowing you to control exactly how the date or time is displayed.

Configuration options

When binding the Date & Time datasource to a text field, the following settings are available:

SettingDescriptionExample
Date formatInput a "DateTime format string" to control how the date/time is presentedYYYY-MM-DD
Time zoneSelect which time zone to use for the displayed date/timeEurope/Kiev
LanguageSelect which language to use for the date/timeEnglish

DateTime format strings

A DateTime format string defines how the final date or time should appear.
Format strings use tokens to represent each part of a date, such as year, month, day, hour, or week number.

Smartsign uses the Moment.js formatting standard and you can find some common examples in the following tables.

For a full list of supported tokens, please refer to the official documentation: https://momentjs.com/docs/#/displaying/format/.

Year

TokenOutputResult
YYYYFull year2025
YYTwo-digit year25

Month

TokenOutputResult
MMMonth number (01–12)03
MMonth number (1–12)3
MMMMFull month nameMarch
MMMShort month nameMar

Day

TokenOutputResult
DDDay of month (01–31)09
DDay of month (1–31)9
ddddFull weekday nameMonday
dddShort weekday nameMon
dWeekday number (0–6, Sunday = 0)1

Time

TokenOutputResult
HHHour (00–23)03
HHour (0–23)3
hhHour (01–12)02
hHour (1–12)2
mmMinutes (00–59)07
mMinutes (0–59)7
ssSeconds (00–59)05
sSeconds (0–59)5
aam/pmpm
AAM/PMPM

Week

TokenOutputResult
WISO week number1
WWISO week number (two digits)01

Combined examples

DateTime format stringResult
dddd, MMMM DoMonday, March 4th
HH:mm14:37
YYYY-MM-DD HH:mm2024-03-04 14:37
MMM DD, YYYY - h:mm AMar 04, 2024 - 2:37 PM
dddd [week] WMonday week 11